﻿#region << 文件说明 >>

/*----------------------------------------------------------------
 * 命名空间：Vampirewal.Core.SocketCore.Models.DynamicObject
 * 唯一标识：05823bff-6aa9-4fe6-8414-b7b57dde7597
 * 文件名：DynamicPropertyChangedEventArgs
 *
 * 创建者：杨程
 * 电子邮箱：235160615@qq.com
 * 创建时间：2024/8/12 21:55:51
 * 版本：V1.0.0
 * 描述：
 *
 * ----------------------------------------------------------------
 * 修改人：
 * 时间：
 * 修改说明：
 *
 * 版本：V1.0.1
 *----------------------------------------------------------------*/

#endregion << 文件说明 >>

namespace Vampirewal.Core.SocketCore;

/// <summary>
/// 动态属性变更
/// </summary>
/// <typeparam name="T"></typeparam>
public struct DynamicPropertyChangedEventArgs<T>
{
    internal DynamicPropertyChangedEventArgs(DynamicProperty<T> property, object? oldValue, object? newValue)
    {
        Property = property;
        OldValue = oldValue;
        NewValue = newValue;
    }

    public DynamicProperty<T> Property { get; private set; }

    public object? OldValue { get; private set; }

    public object? NewValue { get; private set; }
}